<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
       <!-- 
           reverse方法：
                    数组倒序输出
                    直接改变了原数组，并把原数组的地址返回出去
        -->
<body>
    <script>
       var re = [1,4,6,3,4,2,1,5];
       var arr = re.reverse()//返回原数组的地址
       console.log(re);
       console.log(arr)
       console.log(re === arr)
    </script>
</body>

</html>